/******************************************************************************
 * 
 * Announce: CSharpKit, Basic algorithms, components and definitions.
 *           Copyright (C) ShenYongchen.
 *           All rights reserved.
 *   Author: 申永辰.郑州 (shenyczz@163.com)
 *  WebSite: http://gitee.com/shenyczz/csharp_csk
 *
 * THIS CODE IS LICENSED UNDER THE MIT LICENSE (MIT).
 * THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 
 * ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
 * IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
 * PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
 * 
******************************************************************************/

namespace CSharpKit.NTS
{
    /// <summary>
    /// NTS API version information.
    /// </summary>
    public class NTSVersion
    {
        private NTSVersion() { }
        public static readonly NTSVersion CURRENT_VERSION = new NTSVersion();

        /// <summary>
        /// The current version number
        /// </summary>
        public static readonly int MAJOR = 1;
        /// <summary>
        /// The minor version number.
        /// </summary>
        public static readonly int MINOR = 0;
        /// <summary>
        /// The patch version number.
        /// </summary>
        public static readonly int PATCH = 1;
        /// <summary>
        /// An optional string providing further release info (such as "alpha 1")
        /// </summary>
        private static readonly string RELEASE_INFO = "";


        public override string ToString()
        {
            string ver = MAJOR + "." + MINOR + "." + PATCH;
            if (RELEASE_INFO != null && RELEASE_INFO.Length > 0)
                return ver + " " + RELEASE_INFO;
            return ver;
        }

        // {{END}}
    }


}

